<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

$routes_suffix = env('ROUTES_SUFFIX','.html');



Route::get('register'.$routes_suffix,'LoginController@register')->name('member.register'); // 用户注册
Route::get('forget'.$routes_suffix,'LoginController@forget')->name('member.forget'); // 用户找回密码
Route::get('login'.$routes_suffix,'LoginController@login')->name('member.login'); // 登陆验证

Route::post('getsms'.$routes_suffix,'IndexController@getSms')->name('member.get_sms'); // 获取密码
Route::post('on_register'.$routes_suffix,'IndexController@checkRegister')->name('member.on_register'); // 用户注册
Route::post('on_forget'.$routes_suffix,'IndexController@checkForget')->name('member.on_forget'); // 用户找回密码
Route::post('on_login'.$routes_suffix,'IndexController@checkLogin')->name('member.on_login'); // 登陆验证


// 用户端路由
Route::get('index'.$routes_suffix,'IndexController@index')->name('member.index'); // 用户主页

Route::get('logout'.$routes_suffix,'IndexController@logout')->middleware('auth.member')->name('member.logout'); // 退出登录



//企业信息
Route::get('company/index'.$routes_suffix,'CompanyController@index')->middleware('auth.member')->name('member.company.index');//概况
Route::get('company/content'.$routes_suffix,'CompanyController@content')->middleware('auth.member')->name('member.company.content');//内容
Route::get('company/template'.$routes_suffix,'CompanyController@template')->middleware('auth.member')->name('member.company.template');//装修

//个人信息
Route::get('personal/card'.$routes_suffix,'PersonalCardController@card')->middleware('auth.member')->name('member.personal.card');//名片
Route::get('personal/cardlists'.$routes_suffix,'PersonalCardController@cardlists')->middleware('auth.member')->name('member.personal.cardlists');//名片模板


